<h2 style="margin-bottom:5px;"><a href="admin_manager.php?method=add" class="button">添加管理员</a></h2>
<table width="100%" border="0" cellpadding="0" cellspacing="2" class="list">
	<tr>
		<th width="10%">ID</th>
		<th width="40%">用户名</th>
		<th width="20%">权限</th>
		<th width="10%">状态</th>
		<th width="20%"></th>
	</tr>
	{{foreach from=$rows key=key item=item name="for"}}
	<tr id="tr_{{$item.id}}" {{if $key%2 eq '0'}}class="even"{{else}}class="odd"{{/if}}>
		<td align="center">{{$item.id}}</a></td>
		<td align="center">{{$item.user_id}}({{$item.user_name}})</td>
		<td align="center">{{$item.grade}}</td>
		<td align="center">{{$item.status}}</td>
		<td align="center"><input class="editbtn" type="button" value="编辑" onclick="javascript:location.href='?method=add&id={{$item.id}}'">&nbsp;<input class="delbtn" type="button" value="删除" onclick="javascript:location.href='?method=del&id={{$item.id}}'"></td>
	</tr>
	{{/foreach}}
</table>
<script>
function active(id)
{
	if(confirm("确认激活？")){
		window.location.href = "?method=active&id="+id;
	}
}
</script>